

export function findUserByName(username) {
  return request({
    url: `/user/findByName?username=${username}`,
    method: 'get'
  })
}



export function updateUser(data) {
  return request({
    url: '/user/',
    method: 'put',
    data: data
  })
}

export function changePass(data) {
  return request({
    url: '/user/changePass',
    method: 'put',
    data: data
  })
}
